package com.wenan.ui.reports
{
	import com.wenan.ui.controls.charts.Linear;
	
	import mx.core.UIComponent;

	public class DataReportInfo extends ReportInfo
	{
		private var _nameField:String;
		private var _dataFields:Array;
		
		public function DataReportInfo()
		{
			super();
		}

		public override function get title():String
		{
			return "表格";
		}
		
		/**
		 * 名称属性。
		 */
		public function get nameField():String
		{
			return _nameField;
		}

		public function set nameField(value:String):void
		{
			_nameField = value;
		}

		/**
		 * 数值属性数组。
		 */
		public function get dataFields():Array
		{
			return _dataFields;
		}

		public function set dataFields(value:Array):void
		{
			_dataFields = value;
		}
		
		public override function get xField():String
		{
			return _nameField;
		}
		
		public override function set xField(value:String):void
		{
			_nameField = value;
		}
		
		public override function get yFields():Array
		{
			return _dataFields;
		}
		
		public override function set yFields(value:Array):void
		{
			_dataFields = value;
		}
		
		public override function createReportPanel():UIComponent {
			var reportPanel:DataReportPanel = new DataReportPanel();
			reportPanel.reportData = reportData;
			return reportPanel;
		}
	}
}